﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//import
using ddcCajamarca.BusinessLogic.Documentos.Service;
using Microsoft.Practices.Unity;
using ddcCajamarca.Repository.Documentos.Service;
using ddcCajamarca.BusinessEntities.Documentos;


namespace ddcCajamarca.BusinessLogic.Documentos
{
    public class AreaBL : IAreaBL
    {
        [Dependency]
        public IAreaRepository repository { get; set; }
        public List<Area> getAllFromAreaByCriterio(string criterio)
        {
            return repository.getAllFromAreaByCriterio(criterio);
        }

        public List<Area> getAllFromArea()
        {
            return repository.getAllFromArea();
        }

        public Area getFromAreaById(int id)
        {
            return repository.getFromAreaById(id);
        }

        public void AddArea(Area area)
        {
            repository.addArea(area);
        }

        public void UpdateArea(Area area)
        {
            repository.updateArea(area);
        }

        public void RemoveArea(int id)
        {
            throw new NotImplementedException();
        }
    }
}
